import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Scanner;

public class shiyihao {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
       String s= scanner.nextLine();
        String ss[] =s.split("");

        HashSet sa= new HashSet<>();
        for (String s1 : ss) {
            sa.add(Integer.parseInt(s1));
        }

            Iterator aa=sa.iterator();
            while (aa.hasNext()){
                System.out.println(aa.next());
            }
        System.out.println(sa);
    }
}
